﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Package;
using Microsoft.VisualStudio.TextManager.Interop;

namespace FixtureHighlighter
{
    class FixtureAuthoringScope : AuthoringScope
    {
        public FixtureAuthoringScope(object parseResult)
        {
            ParseResult = parseResult;
        }

        object ParseResult
        {
            get;
            set;
        }
        
        // ParseReason.QuickInfo
        public override string GetDataTipText( int line, int col, out TextSpan span )
        {
            span = new TextSpan();
            return null;
        }

        // ParseReason.CompleteWord
        // ParseReason.DisplayMemberList
        // ParseReason.MemberSelect
        // ParseReason.MemberSelectAndHilightBraces
        public override Declarations GetDeclarations( IVsTextView view, int line, int col, TokenInfo info, ParseReason reason )
        {
            return new FixtureDeclarations();
        }

        // ParseReason.GetMethods
        public override Methods GetMethods( int line, int col, string name )
        {
            return new FixtureMethods();
        }

        // ParseReason.Goto
        public override string Goto( VSConstants.VSStd97CmdID cmd, IVsTextView textView, int line, int col, out TextSpan span )
        {
            span = new TextSpan();
            return null;
        }
    }
}
